<?php

namespace mpend\modules\commission\controllers;

use Yii;
use mpend\modules\commission\components\Controller;
use mpend\modules\commission\models\MarketOrderSearch;

/**
 * 分销订单
 *
 * @author emhome<emhome@163.com>
 * @since 2.0
 */
class OrderController extends Controller {

    /**
     * Renders the index view for the module
     * @return string
     */
    public function actionIndex() {
        $model = new MarketOrderSearch();
        $model->user_id = $this->uid;
        return $model->search();
    }

    /**
     * 订单列表
     * @return string
     */
    public function actionRecent($time) {
        $model = new MarketOrderSearch();
        $model->user_id = $this->uid;
        $model->rectime = $time;
        return $model->search();
    }

}
